package me.zhengjie.server.impl;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.AllArgsConstructor;
import me.zhengjie.dao.MaterialDetailDao;
import me.zhengjie.mapper.MaterialDetailMapper;
import me.zhengjie.server.MaterialDetailService;
import me.zhengjie.server.MaterialService;
import me.zhengjie.utils.PageResult;
import me.zhengjie.utils.PageUtil;
import org.springframework.stereotype.Service;

/**
* @author xinglin.lu
* @description 针对表【iws_material_detail(物料明细表)】的数据库操作Service实现
* @createDate 2025-06-10 15:30:32
*/
@Service
@AllArgsConstructor
public class MaterialDetailServiceImpl extends ServiceImpl<MaterialDetailMapper, MaterialDetailDao>
    implements MaterialDetailService{
    private final MaterialService materialService;
    @Override
    public PageResult<MaterialDetailDao> queryAll(MaterialDetailDao criteria) {
        return PageUtil.toPage(baseMapper.findAll(criteria),baseMapper.selectCount(null));
    }
}




